package com.example.publishDemo.Service;


import com.example.publishDemo.Model.User;
import com.example.publishDemo.Model.UserRelation;
import org.springframework.stereotype.Service;

import java.util.List;

public interface UserService {
    List<User> userlist();

    int addUser(String username, String password, String gender);

    int registe(User user);

    User findOne(String username, String password);

    List<User> checkNameExcludingMe(String username,int u_id);
    List<User> checkName(String username);

    int delUser(int id);

    User login(User user);

    int UnFollow(int focus_id, int focused_id);
    int buildRelationship(int focus_id, int focused_id);

    List<UserRelation> isRelation(int focus_id, int focused_id);

    User getUserForId(int u_id);

    List<User> getUserFansForId(int u_id);

    int changUserStatus(int u_id, String userStatus);

    int changeUserInfo(String username, String password,int u_id);

    void changeUserGravatar(String picture, int u_id);

    List<Integer> GetAllUsersOfFocusId(int u_id);


}
